define(
    [
        'require'
    ],
    function(require){
        APM.MainLicenseController = Ember.Controller.extend({
            tabs: Ember.A([{
                'title': '申请License',
                'active': true
            }, 
            {
                'title': '导入License'
            }]),

            actions:{
                toggleTab: function(tab) {
                    var set = Ember.set;
                    this.get('tabs').forEach(function(item) {
                        (item != tab) && set(item, 'active', false);
                    });
                    set(tab, 'active', true);
                },
                applyLicense:function(){
                    var userName = this.get("tempUserName");

                },
                loadLicense:function(){
                    
                }
            }
        });        
    }
);